const { ViewTypeEnum } = require('../../utils/cache')
const { format } = require('util')

module.exports = function () {
    const opts = this.options
    const name = format('端口转发-%s', opts.name || opts.host)
    return {
        viewType: ViewTypeEnum.DIALOG,
        viewOptions: {
            modal: false,
            title: name,
            dialogButtons: ['新建', '关闭'],
            size: {
                width: 600,
                height: 400
            }
        }
    }
}
